package performanceTest;

import org.junit.Before;
import org.junit.Test;

public class PerformanceTestArray {
	
	private int count = 10_000_000;
	private String[] list = new String[count];
	
	@Before
	public void init(){
		for(int i = 0; i < count; i++){
			list[i] = String.valueOf(i);
		}
	}
	
	@Test
	public void forEach(){
		for(String item : list){
			
		}
	}
	
	@Test
	public void forIndex(){
		for(int i = 0; i < count; i++){
			String a = list[i];
		}
	}
}
